package org.example.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.example.bean.Permission;

import java.util.List;

@Mapper
public interface PermissionDao extends BaseMapper<Permission> {
   @Select("select * from sys_permission where perm_type = 0 order by id")
   List<Permission> findAllRoutes();
}
